package com.homework.test16;

public class Designer extends Programmer {
    private double prize;

    public double getPrize() {
        return prize;
    }

    public void setPrize(double prize) {
        this.prize = prize;
    }

    public Designer(int id, String name, int age, double salary, double prize) {
        super(id, name, age, salary);
        this.prize = prize;
    }

    public Designer(double prize) {
        this.prize = prize;
    }

    public String getInfo() {
        return super.getInfo() + "\t" + prize;
    }
}
